package com.fudan.adse.exception;


import com.fudan.adse.api.IErrorCode;

/**
 * @author Jerry Zhang <zhangjian16@fudan.edu.cn>
 * @desc 自定义断言处理类，用于抛出各种Api异常
 * @date 2022-09-14 11:52
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
